package com.jlc.struts2;
import java.util.*;

import com.opensymphony.xwork2.ActionSupport;

public class RegisterActionForm extends ActionSupport
{
	private String code;
	private String batchId;
	private String sid;
	private String fname;
	private String uname;
	private String pword;
	private String phone;
	private String email;
	private String gender;
	private Date dob;
	private String qualification;
	private String courses;
	private String timings;
	private String timecourses;
	private String aboutus;
	private String comments;
	private String token;
	private boolean termsAcceptence ;
	private List<String> paymentOption = new ArrayList<String>() ;
	private List<String> reqTechsLeft = new ArrayList<String>() ;
	private List<String> reqTechsRight = new ArrayList<String>() ;
	private List<String> learningOrder = new ArrayList<String>() ;
	
	public String execute()
	{
		System.out.println("In execute() method.......");
		String status="failed";
		if( (batchId.equals("B16")) || (batchId.equals("B17")) || (batchId.equals("B18")) || (batchId.equals("B19")))
		{
			status = "success";
		}
		else
		{
			addActionError("Registration cannot be proceeded for given batch");
		}
		return status;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getBatchId() {
		return batchId;
	}

	public void setBatchId(String batchId) {
		this.batchId = batchId;
	}

	public String getSid() {
		return sid;
	}

	public void setSid(String sid) {
		this.sid = sid;
	}

	public String getFname() {
		return fname;
	}

	public void setFname(String fname) {
		this.fname = fname;
	}

	public String getUname() {
		return uname;
	}

	public void setUname(String uname) {
		this.uname = uname;
	}

	public String getPword() {
		return pword;
	}

	public void setPword(String pword) {
		this.pword = pword;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public Date getDob() {
		return dob;
	}

	public void setDob(Date dob) {
		this.dob = dob;
	}

	public String getQualification() {
		return qualification;
	}

	public void setQualification(String qualification) {
		this.qualification = qualification;
	}

	public String getCourses() {
		return courses;
	}

	public void setCourses(String courses) {
		this.courses = courses;
	}

	public String getTimings() {
		return timings;
	}

	public void setTimings(String timings) {
		this.timings = timings;
	}

	public String getTimecourses() {
		return timecourses;
	}

	public void setTimecourses(String timecourses) {
		this.timecourses = timecourses;
	}

	public String getAboutus() {
		return aboutus;
	}

	public void setAboutus(String aboutus) {
		this.aboutus = aboutus;
	}

	public String getComments() {
		return comments;
	}

	public void setComments(String comments) {
		this.comments = comments;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public boolean isTermsAcceptence() {
		return termsAcceptence;
	}

	public void setTermsAcceptence(boolean termsAcceptence) {
		this.termsAcceptence = termsAcceptence;
	}

	public List<String> getPaymentOption() {
		return paymentOption;
	}

	public void setPaymentOption(List<String> paymentOption) {
		this.paymentOption = paymentOption;
	}

	public List<String> getReqTechsLeft() {
		return reqTechsLeft;
	}

	public void setReqTechsLeft(List<String> reqTechsLeft) {
		this.reqTechsLeft = reqTechsLeft;
	}

	public List<String> getReqTechsRight() {
		return reqTechsRight;
	}

	public void setReqTechsRight(List<String> reqTechsRight) {
		this.reqTechsRight = reqTechsRight;
	}

	public List<String> getLearningOrder() {
		return learningOrder;
	}

	public void setLearningOrder(List<String> learningOrder) {
		this.learningOrder = learningOrder;
	}
	
	
}
